package cn.liangcaomei.eduservice.service;

import cn.liangcaomei.eduservice.entity.EduChapter;
import cn.liangcaomei.eduservice.entity.chapter.ChapterVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author LiuJie
 * @since 2024-01-27
 */
public interface EduChapterService extends IService<EduChapter> {

    //課程大綱列表,根據課程Id查詢小節
    List<ChapterVo> getChapterVideoByCoutseId(String courseId);

    //删除方法
    boolean deleteChapter(String chapterId);

    //根据课程id 删除章节
    void removeChapterCourseId(String courseId);
}
